﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CRM.Cache.Start
{
    public class Program
    {
        static void Main(string[] args)
        {
            using (ServiceHost host = new ServiceHost(typeof(DictinaryCache)))
            {
                try
                {
                    host.Open();

                    Console.WriteLine("wcf缓存服务已经开启！");

                    Console.Read();
                }
                catch (Exception)
                {
                    host.Close();
                    throw;
                }
            }
        }
    }
}
